<?php

namespace App\Api\Requests;

class StocksTradesRequest extends FormRequest
{
    public function rules()
    {
        return [
            'number' => ['required'],
            'price'=>['required'],
        ];
    }
    public function attributes()
    {
        return [
            'number' => '数量',
            'price' =>"单价",
        ];
    }

    public function messages()
    {
        return [
            'number.required' => '数量不能为空',
            'price.required'=>"单价不能为空"

        ];
    }
}